package com.icehand.common.result;

import com.google.common.collect.Lists;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author icehand
 */
@Data
@NoArgsConstructor
public class PageResult<T> {
    private long total = 0;
    private List<T> list = Lists.newArrayList();

    public PageResult(Long total, List<T> list) {
        this.total = total;
        this.list.addAll(list);
    }
}
